package com.seal.service;

import java.util.List;
import java.util.Map;

import com.seal.comm.utils.Page;
import com.seal.dto.EmailDto;
import com.seal.model.Email;
import com.seal.model.UserInfo;

public interface IEmailService {

	void addEmail(Email email) throws Exception;

	@SuppressWarnings("unchecked")
	void addEmail(List<UserInfo> userList, Map<String, String> map,
			String busiType) throws Exception;

	void addSimpleMail(String mailAddress, String title, String content)
			throws Exception;

	void updateEmail(Email email) throws Exception;

	Email getEmailById(String id) throws Exception;

	List<Email> getSendEmail() throws Exception;

	List<Email> getAllEmail(EmailDto dto, Page page) throws Exception;

	void moveSuccEmailToHistory() throws Exception;
}
